package com.pbc.gmp.service;

import com.pbc.gmp.model.OrgInfoVo;
import com.pbc.gmp.model.OrgTreeDto;
import com.pbc.gmp.model.basemodel.Org;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author kjk
 * @since 2017-04-17
 */
public interface IOrgService extends IService<Org> {


    List<Org> selectTreeGridByRootId(java.lang.Long id);
    List<Org> selectTreeGridByPid(java.lang.Long id);
    public OrgTreeDto selectOrgTreeDtoById(java.lang.Long id);
    public List<OrgTreeDto> selectOrgTreeDtoByPid(java.lang.Long pid);
    public List<OrgTreeDto> selectAllOrg();
    public List<Org> selectOrgListByUserId(java.lang.Long id);
    public List<OrgInfoVo> selectDepartmentListByUserId(Long id);
    public List<OrgTreeDto> selectOrgByType(int type);
    public List<OrgTreeDto>   selectOrgListByType(Long rootid ,int type);

}
